# coding: utf-8
import time
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice

device = MonkeyRunner.waitForConnection()

w = 720
h = 1280

print('go')

while True:
    device.touch(1160, 475, MonkeyDevice.DOWN_AND_UP)
    time.sleep(3)

result = device.takeSnapshot()
result.writeToFile('/tmp/shot1.png', 'png')
